<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="model.JsfStaff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>查询教练</title>
</head>
<body>
<%
	JsfStaff staff = (JsfStaff) session.getAttribute("staff");
	int ps = staff.getStatus();
%>
<s:form method="post" action="coach_findById" id="form1">
	<tr><td>教练ID:</td><td><input type="text" name="coachID">
	<font color="red">*</font></td></tr>
	<tr><td><input type="submit" value="查 询  " class="btn btn-info"/></td></tr>
</s:form>
<script type="text/javascript">
		function check(){
		var coachID = document.form1.coachID;
		var reNum =/^[0-9]+$/;
		if(coachID.value==""){
			alert("必填项不能为空！");
			return false;
		}
		if( !reNum.test(coachID.value) ){
			alert("“必须为数字！");
			return false;
		}
		
		else{
			return true;
		}
	}
    </script>
</body>
</html>